package com.zf.apartment.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zf.common.annotation.Excel;
import com.zf.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 位置对象 location
 *
 * @author rxf
 * @date 2024-09-29
 */
@TableName(resultMap = "com.zf.apartment.mapper.LocationMapper.LocationResult")
public class Location extends BaseEntity
        {
private static final long serialVersionUID = 1L;

        /** 位置ID */
            @TableId(value = "location_id",type = IdType.AUTO)
        private Long locationId;

        /** 位置名称 */
                @Excel(name = "位置名称")
        private String locationName;

        /** 父菜单ID */
                @Excel(name = "父菜单ID")
        private Long parentId;

        /** 显示顺序 */
                @Excel(name = "显示顺序")
        private Long orderNum;

        /** 是否为外链（0是 1否） */
                @Excel(name = "是否为外链", readConverterExp = "0=是,1=否")
        private Long isFrame;

        /** 是否缓存（0缓存 1不缓存） */
                @Excel(name = "是否缓存", readConverterExp = "0=缓存,1=不缓存")
        private Long isCache;

        /** 位置类型（P省份 C市 D区县） */
                @Excel(name = "位置类型", readConverterExp = "P=省份,C=市,D=区县")
        private String locationType;

        /** 位置状态（0显示 1隐藏） */
                @Excel(name = "位置状态", readConverterExp = "0=显示,1=隐藏")
        private String visible;

        /** 详细地址 */
                @Excel(name = "详细地址")
        private String detail;

        public void setLocationId(Long locationId)
        {
            this.locationId = locationId;
        }

        public Long getLocationId()
        {
            return locationId;
        }
        public void setLocationName(String locationName)
        {
            this.locationName = locationName;
        }

        public String getLocationName()
        {
            return locationName;
        }
        public void setParentId(Long parentId)
        {
            this.parentId = parentId;
        }

        public Long getParentId()
        {
            return parentId;
        }
        public void setOrderNum(Long orderNum)
        {
            this.orderNum = orderNum;
        }

        public Long getOrderNum()
        {
            return orderNum;
        }
        public void setIsFrame(Long isFrame)
        {
            this.isFrame = isFrame;
        }

        public Long getIsFrame()
        {
            return isFrame;
        }
        public void setIsCache(Long isCache)
        {
            this.isCache = isCache;
        }

        public Long getIsCache()
        {
            return isCache;
        }
        public void setLocationType(String locationType)
        {
            this.locationType = locationType;
        }

        public String getLocationType()
        {
            return locationType;
        }
        public void setVisible(String visible)
        {
            this.visible = visible;
        }

        public String getVisible()
        {
            return visible;
        }
        public void setDetail(String detail)
        {
            this.detail = detail;
        }

        public String getDetail()
        {
            return detail;
        }

@Override
public String toString() {
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("locationId", getLocationId())
        .append("locationName", getLocationName())
        .append("parentId", getParentId())
        .append("orderNum", getOrderNum())
        .append("isFrame", getIsFrame())
        .append("isCache", getIsCache())
        .append("locationType", getLocationType())
        .append("visible", getVisible())
        .append("detail", getDetail())
            .toString();
}
        }